package com.ruoyi.project.system.domain;

import java.math.BigDecimal;

import com.ruoyi.framework.aspectj.lang.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 订单详情对象 ts_order_details
 *
 * @author tsxuwj
 * @date 2020-06-22
 */
public class OrderDetails extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 订单主键
     */
    private Long orderId;

    /**
     * 设备主键
     */
    private Long equipmentId;

    /**
     * 设备详情
     */
    @Excels({
            @Excel(name = "产品名称", targetAttr = "name", type = Excel.Type.EXPORT),
            @Excel(name = "型号名称", targetAttr = "model", type = Excel.Type.EXPORT),
            @Excel(name = "参数名称", targetAttr = "parameter", type = Excel.Type.EXPORT),
            @Excel(name = "计量单位", targetAttr = "units", type = Excel.Type.EXPORT),
    })
    private Equipment equipment;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long count;

    /**
     * 购买时单价
     */
    @Excel(name = "购买时单价")
    private BigDecimal price;

    /**
     * 购买时成本单价
     */
    @Excel(name = "购买时成本单价")
    private BigDecimal priceCost;

    /**
     * 成本合计
     */
    @Excel(name = "成本合计")
    private BigDecimal priceTotal;

    /**
     * 单价合计
     */
    @Excel(name = "单价合计")
    private BigDecimal priceTotalCost;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setEquipmentId(Long equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() {
        return equipmentId;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Long getCount() {
        return count;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPriceCost(BigDecimal priceCost) {
        this.priceCost = priceCost;
    }

    public BigDecimal getPriceCost() {
        return priceCost;
    }

    public void setPriceTotal(BigDecimal priceTotal) {
        this.priceTotal = priceTotal;
    }

    public BigDecimal getPriceTotal() {
        return priceTotal;
    }

    public void setPriceTotalCost(BigDecimal priceTotalCost) {
        this.priceTotalCost = priceTotalCost;
    }

    public BigDecimal getPriceTotalCost() {
        return priceTotalCost;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("equipmentId", getEquipmentId())
                .append("count", getCount())
                .append("price", getPrice())
                .append("priceCost", getPriceCost())
                .append("priceTotal", getPriceTotal())
                .append("priceTotalCost", getPriceTotalCost())
                .append("remark", getRemark())
                .toString();
    }
}
